package cn.hls.web.servlet;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.hls.service.GPSWarnService;

@Service("apiService")
public class APIService {
	@Resource(name="gpsWarnService")
	private GPSWarnService serivce;//定义账户Service
	/**
	 * gps预警接口
	 * @param jsonStr json字符串
	 * @param token 验证码
	 * @return　String
	 * @throws Exception
	 */
	public String gpsWarn(String jsonStr,String token)throws Exception{
		return serivce.add(jsonStr, token);
	}
	
}
